from tkinter import*

coords = [[0, 0], [10, 0], [10, 10], [20, 10], [20, 20], [10, 20], [10, 30], [0, 30]]

root = Tk()

root.title('ИТ МАРАФОН')

root.geometry('500x500')

canvas = Canvas(bg = 'red', width = 500, height = 500)
canvas.pack(anchor=CENTER, expand=1)
print ('смещение X')
x = int(input())
print ('смещение Y')
y = int(input())
print ('размер')
m = int(input())

max_x = 0
max_y = y

for c in coords:
    c[0] = c[0] * m + x
    max_x = max(c[0], max_x)
    c[1] = c[1] * m + y
    max_y = max(c[1], max_y)
if max_x <= 500 and max_y <= 500:
    canvas. create_polygon(coords, fill = 'pink', outline = 'white', width = 2)
else:
    print('размер фигуры превышает поле')
root.mainloop()
